<?php
/**
 * Created by PhpStorm.
 * User: Alexander
 * Date: 3.8.14
 * Time: 12.42
 */

function db_for_IShop_connect($linkId){
  $url = "localhost";
  $username = "sasha";
  $password = "sasha";

  $linkId = mysql_connect($url, $username, $password) or die(mysql_error());

  mysql_select_db("test1", $linkId) or die(mysql_error());
}

function db_for_IShop_close($linkId){
  mysql_close($linkId);
}